﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace App.App_Start
{
    public class ExtNetConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            // Ignore all ext.axd embedded resource paths
            routes.IgnoreRoute("{extnet-root}/{extnet-file}/ext.axd");

            // Add http://example.com/extnet/ Route
            routes.MapRoute(
                "ExtNet", // Route name
                "{controller}/{action}/{id}", // URL with parameters
                new { controller = "HomeAccount", action = "Test", id = UrlParameter.Optional } // Parameter defaults
            );
        }
    }
}